class Solution(object):
    def findLengthOfLCIS(self, nums):
        """
        :type nums: List[int]
        :rtype: int
        """
        if not nums:
            return 0
        max_count = 1
        count = 1

        for i in range(len(nums)-1):
            if nums[i]<nums[i+1]:
                count+=1
                max_count = max(max_count, count)
            else:
                count=1


        return max_count


a = [1,3,5,4,7]
s= Solution()
m =s.findLengthOfLCIS(a)
print(m)